﻿using System;

namespace DataBase.DBmodels;

public partial class Craft
{
    public int Id { get; set; }

    //项目名（步骤名称
    public string? Project { get; set; }

    public double Speed { get; set; }

    public int ? CraftId { get; set; }

    public bool ? MainCraft { get; set; }
    


    //保护压力/保护位移/等待时间
    public double StartPoint { get; set; }

    //目标压力/目标位移/目标等待时间
    public double EndPoint { get; set; }

    //用于索引，类似于PId
    public int? Type { get; set; }

    //对应的类型
    public string? ShowType { get; set; }

    public bool IsCallPolice { get; set; }

    //采集频率
    public int ? Gather { get; set; }

    //储存频率
    public int? Storage { get; set; }

    //峰最大时间段
    public string? PeakMaxTime { get; set; }

    //峰最小时间段
    public string? PeakMinTime { get; set; }

    //峰最大时间段
    public string? ValleyMaxTime { get; set; }

    //峰最小时间段
    public string? ValleyMinTime { get; set; }

    public double? PeakLimitation { get; set; }

    public double? ValleyLimitation { get; set; }

    public string? NodeId { get; set; }
    public string? StationNode { get; set; }
    public int? GateWayId { get; set; }

    public double? VoltageRatio { get; set; }

    public double? CurrentRatio { get; set; }
}
public partial class CraftView: Craft
{
    /// <summary>
    /// 电压
    /// </summary>
    public double Voltage_A { get; set; }
    public double Voltage_B { get; set; }
    public double Voltage_C { get; set; }



    //电流
    public double Electric_A { get; set; }
    public double Electric_B { get; set; }
    public double Electric_C { get; set; }

    //功率
    public double Power_A { get; set; }
    public double Power_B { get; set; }
    public double Power_C { get; set; }

    //功率yinshu2
    public double PowerFactor_A { get; set; }
    public double PowerFactor_B { get; set; }
    public double PowerFactor_C { get; set; }

    //温度
    public double Humidity_A { get; set; }
    public double Humidity_B { get; set; }
    public double Humidity_C { get; set; }

    public double Energy { get; set; }

    public int Status { get; set; }

    /// <summary>
    /// 存储到第几个点位
    /// </summary>
    public int SaveCount { get; set; }

    /// <summary>
    /// 存储频率第几个点
    /// </summary>
    public int SaveGatherCount { get; set; }

    public int GatherCount { get; set; }

    public int GatherCount2 { get; set; }

}